import Vue from 'vue';
import Router from 'vue-router';
import Hello from '@/components/Hello';
import Index from '@/components/Index';
import Login from '@/components/Login';
import Publish from '@/components/Publish';
import Register from '@/components/Register';
import User from '@/components/User';
import TaskDetail from '@/components/TaskDetail';
import JoinTask from '@/components/JoinedTask';
import Home from '@/components/Home';
import PublishTask from '@/components/PublishTask';
import DoingTask from '@/components/DoingTask';
import OverTask from '@/components/OverTask';
import JoinTaskData from '@/components/JoinTaskData';
import JoinerList from '@/components/JoinerList';
import JoinerDataList from '@/components/JoinerDataList';
import UserInfo from '@/components/UserInfo';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'Hello',
      component: Hello,
    }, {
      path: '/',
      name: 'Index',
      component: Index,
    }, {
      path: '/home',
      name: 'Home',
      component: Home,
    }, {
      path: '/login',
      name: 'Login',
      component: Login,
    }, {
      path: '/register',
      name: 'Register',
      component: Register,
    }, {
      path: '/publish',
      name: 'Publish',
      component: Publish,
    }, {
      path: '/user',
      name: 'User',
      component: User,
    }, {
      path: '/detail/:taskId',
      name: 'Detail',
      component: TaskDetail,
    }, {
      path: '/joinTask',
      name: 'JoinTask',
      component: JoinTask,
    }, {
      path: '/publishTask',
      name: 'PublishTask',
      component: PublishTask,
    }, {
      path: '/doingTask',
      name: 'DoingTask',
      component: DoingTask,
    }, {
      path: '/overTask',
      name: 'OverTask',
      component: OverTask,
    }, {
      path: '/joinTaskData/:taskId',
      name: 'JoinTaskData',
      component: JoinTaskData,
    }, {
      path: '/joinerList/:taskId',
      name: 'JoinerList',
      component: JoinerList,
    }, {
      path: '/joinerDataList/:taskId',
      name: 'JoinerDataList',
      component: JoinerDataList,
    }, {
      path: '/userInfo',
      name: 'UserInfo',
      component: UserInfo,
    },
  ],
});
